<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragments/header :: header">
</head>
<body>
<div class="container">
	<div class="mt-3">
		<h2>login page</h2>
	</div>
	<p>Common user account/password: jangz/123456</p>
	<p>Administrator accout/password: admin/123456</p>
	<p th:if="${loginError}" th:text="${errorMsg}">Error: username or password!</p>
	<form th:action="@{/login}" method="post">
		<label for="username">username</label>
		<input type="text" class="form-control" id="username" name="username" autofocus="autofocus"/><br/>
		
		<label for="password">password</label>
		<input type="password" class="form-control" id="password" name="password"/><br/>
		<input type="submit" class="btn btn-default" value="login" />
	</form>
</div>
<div th:replace="fragments/footer :: footer">...</div>
</body>
</html>